document.addEventListener('DOMContentLoaded', function () {
    const text = "Cease to struggle and you cease to live";
    const typewriter = document.getElementById('typewriter');
    let i = 0;

    function type() {
        if (i < text.length) {
            typewriter.textContent += text.charAt(i);  
            i++;
            setTimeout(type, Math.random() * 100 + 50);
        }
    }
    setTimeout(type, 1000);
});